package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
@create: 2022-09-20 14:28
@author: 怀念天空
@Description: 
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "staff_basic_tbl")
public class StaffBasicInfo {
    /**
     * 人员编号
     */
    @TableId(value = "staff_id", type = IdType.AUTO)
    private Integer staffId;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 用户名
     */
    @TableField(value = "staff_name")
    private String staffName;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 真实姓名
     */
    @TableField(value = "true_name")
    private String trueName;

    /**
     * 电话
     */
    @TableField(value = "phone_number")
    private String phoneNumber;

    /**
     * 归属部门
     */
    @TableField(value = "department_id")
    private Integer departmentId;

    /**
     * 权限
     */
    @TableField(value = "`power`")
    private Integer power;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 身份证号
     */
    @TableField(value = "id_number")
    private String idNumber;

    /**
     * 出生日期
     */
    @TableField(value = "born")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date born;

    /**
     * 文化程度
     */
    @TableField(value = "education")
    private String education;

    /**
     * 政治面貌
     */
    @TableField(value = "polity")
    private String polity;

    /**
     * 职工性质
     */
    @TableField(value = "property")
    private String property;

    /**
     * 工作
     */
    @TableField(value = "work_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date workDate;

    /**
     * 照片
     */
    @TableField(value = "photo")
    private String photo;

    /**
     * 开户银行
     */
    @TableField(value = "bank")
    private String bank;

    /**
     * 银行账号
     */
    @TableField(value = "bank_number")
    private String bankNumber;

    /**
     * 身份证正面
     */
    @TableField(value = "id_picture")
    private String idPicture;

    /**
     * 身份证背面
     */
    @TableField(value = "id_picture_back")
    private String idPictureBack;

    /**
     * 用工性质
     */
    @TableField(value = "`character`")
    private String character;

    /**
     * 状态
     */
    @TableField(value = "stats")
    private String stats;

    @TableField(exist = false)
    private Department department;
}